package com.xz.realdemo2.factory;

import com.xz.realdemo2.model.BwmCar;
import com.xz.realdemo2.model.Car;

/**
 * @author 张志航     
 * @version V1.0.0
 * @projectName design_mode
 * @title     BwmCarFactory   
 * @package    com.xz.realdemo2.factory  
 * @date   2019/11/27 10:19  
 * @explain
 */
public class BwmCarFactory extends CarFactory {
    @Override
    public Car createCar() {
        System.out.println("宝马车厂生产了一辆宝马");
        return new BwmCar();
    }
}
